package com.atguigu.common.exception.ware;

public class NoEnoughStockException extends RuntimeException {

    public NoEnoughStockException(Long skuId, String skuTitle, Integer count) {
        super(String.format("商品 ID: %s, 名称: %s 不能满足 %s 的库存数量，锁定库存失败", skuId, skuTitle, count));
    }

    public NoEnoughStockException() {
        super("锁定库存失败");
    }
}
